js格式化日期,获取当月的第一天,与最后一天. //格式化日期 function setDate(date){ y=date.getFullYear(); m=date.getMonth()+1; d=da ...